import request from '@/utils/request'

// 查询设备保养项目列表
export function listDeviceMaintenanceItem(query) {
  return request({
    url: '/erp/deviceMaintenanceItem/list',
    method: 'get',
    params: query
  })
}

// 查询设备保养项目详细
export function getDeviceMaintenanceItem(id) {
  return request({
    url: '/erp/deviceMaintenanceItem/' + id,
    method: 'get'
  })
}

// 新增设备保养项目
export function addDeviceMaintenanceItem(data) {
  return request({
    url: '/erp/deviceMaintenanceItem',
    method: 'post',
    data: data
  })
}

// 修改设备保养项目
export function updateDeviceMaintenanceItem(data) {
  return request({
    url: '/erp/deviceMaintenanceItem',
    method: 'put',
    data: data
  })
}

// 删除设备保养项目
export function delDeviceMaintenanceItem(id) {
  return request({
    url: '/erp/deviceMaintenanceItem/' + id,
    method: 'delete'
  })
}
